.. _UI Structures: ========================== UI Structures ========================== .. toctree:: :maxdepth: 1 * :ref:`uiColumn` * :ref:`uiItem` * :ref:`uiItem\:\:bam>` * :ref:`uiItem\:\:bmp>` * :ref:`uiItem\:\:button>` * :ref:`uiItem\:\:edit>` * :ref:`uiItem\:\:list>` * :ref:`uiItem\:\:map>` * :ref:`uiItem\:\:mosaic>` * :ref:`uiItem\:\:movie>` * :ref:`uiItem\:\:progressBar>` * :ref:`uiItem\:\:rectangle>` * :ref:`uiItem\:\:scrollbar>` * :ref:`uiItem\:\:slider>` * :ref:`uiItem\:\:slot>` * :ref:`uiItem\:\:text>` * :ref:`uiItem\:\:tooltip>` * :ref:`uiItem\:\:uiTemplate>` * :ref:`uiMenu` * :ref:`uiVariant` * :ref:`UI_ControlTableEntry_st` * :ref:`UI_Control_Button_st` * :ref:`UI_Control_Edit_st` * :ref:`UI_Control_Label_st` * :ref:`UI_Control_ScrollBar_st` * :ref:`UI_Control_Slider_st` * :ref:`UI_Control_TextDisplay_st` * :ref:`UI_Control_st` * :ref:`UI_Header_st` * :ref:`UI_PanelHeader_st` .. _uiColumn: uiColumn ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+-----------+ | **Offset** | **Size (Total: 24)** | **Type** | **Field** | +------------+----------------------+-------------------------------+-----------+ | 0x0 | 8 | :ref:`uiVariant`\* | width | +------------+----------------------+-------------------------------+-----------+ | 0x8 | 8 | :ref:`uiItem`\* | items | +------------+----------------------+-------------------------------+-----------+ | 0x10 | 8 | :ref:`uiColumn`\* | next | +------------+----------------------+-------------------------------+-----------+ ---- .. _uiItem: uiItem ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------------------------------------------------+------------------+ | **Offset** | **Size (Total: 856)** | **Type** | **Field** | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x0 | 4 | uiItemType | type | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | | 4 | | ```` | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x8 | 8 | :ref:`uiMenu`\* | menu | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x10 | 8 | const char* | name | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x18 | 4 | int | instanceId | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | | 4 | | ```` | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x20 | 8 | const char* | templateName | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x28 | 24 | :ref:`Marker` | areaSrc | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x40 | 16 | :ref:`SDL_Rect` | area | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x50 | 16 | :ref:`SDL_Rect` | pad | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x60 | 4 | int | enabled | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x64 | 4 | int | ignoreEvents | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x68 | 4 | int | ha | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x6C | 4 | int | va | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x70 | 8 | :ref:`uiVariant`\* | alpha | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x78 | 8 | :ref:`uiVariant`\* | fill | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x80 | 4 | int | useOverlayTint | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x84 | 12 | Array | overlayTint | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x90 | 64 | :ref:`uiItem::text_t>` | text | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0xD0 | 8 | :ref:`uiItem::uiTemplate_t>` | uiTemplate | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0xD8 | 56 | :ref:`uiItem::bam_t>` | bam | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x110 | 32 | :ref:`uiItem::bmp_t>` | bmp | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x130 | 80 | :ref:`uiItem::list_t>` | list | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x180 | 56 | :ref:`uiItem::scrollbar_t>` | scrollbar | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x1B8 | 40 | :ref:`uiItem::slider_t>` | slider | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x1E0 | 40 | :ref:`uiItem::edit_t>` | edit | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x208 | 16 | :ref:`uiItem::mosaic_t>` | mosaic | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x218 | 48 | :ref:`uiItem::movie_t>` | movie | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x248 | 80 | :ref:`uiItem::button_t>` | button | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x298 | 4 | :ref:`uiItem::map_t>` | map | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | | 4 | | ```` | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x2A0 | 24 | :ref:`uiItem::progressBar_t>` | progressBar | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x2B8 | 40 | :ref:`uiItem::slot_t>` | slot | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x2E0 | 16 | :ref:`uiItem::rectangle_t>` | rectangle | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x2F0 | 4 | int | action | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x2F4 | 4 | int | actionDbl | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x2F8 | 4 | int | actionAlt | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x2FC | 4 | int | actionDrag | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x300 | 4 | int | actionEnter | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x304 | 4 | int | actionExit | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x308 | 4 | int | actionUpdate | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x30C | 4 | int | actionSimpleDrag | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x310 | 4 | int | actionSimpleDrop | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x314 | 4 | int | actionHold | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x318 | 4 | int | actionScroll | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x31C | 4 | int | framesHeld | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x320 | 32 | :ref:`uiItem::tooltip_t>` | tooltip | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x340 | 8 | :ref:`uiVariant`\* | glow | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x348 | 8 | :ref:`uiVariant`\* | pulse | +------------+-----------------------+--------------------------------------------------------------------+------------------+ | 0x350 | 8 | :ref:`uiItem`\* | next | +------------+-----------------------+--------------------------------------------------------------------+------------------+ **Notes** :: enum uiItemType { ITEM_NONE = 0 ITEM_TEXT = 1 ITEM_BUTTON = 2 ITEM_LIST = 3 ITEM_EDIT = 4 ITEM_MOVIE = 5 ITEM_SLIDER = 6 ITEM_HANDLE = 7 ITEM_DRAGGABLE = 8 ITEM_SLOT = 9 ITEM_MAP = 10 ITEM_TEMPLATE = 11 } .. note:: UI elements defined and used in the ``UI.MENU`` file, use this data structure. Some of the field names are exposed via lua and the UI system and are available to retrieve and/or set the field value. .. note:: The fields beginning with ``action`` are processed as events (when something occurs) and can be assigned to lua script actions to perform when the event happens. The lua scripts to assign to an action event are enclosed in double-quotes ``"``. For example:: actionDbl "Infinity_OnPortraitDblClick(0)" calls the lua Infinity_OnPortraitDblClick function when the mouse double clicks the portrait. ---- .. _uiItem\:\:: uiItem\:\:bam ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+---------------+ | **Offset** | **Size (Total: 56)** | **Type** | **Field** | +------------+----------------------+-------------------------------+---------------+ | 0x0 | 8 | :ref:`uiVariant`\* | resref | +------------+----------------------+-------------------------------+---------------+ | 0x8 | 8 | :ref:`uiVariant`\* | sequence | +------------+----------------------+-------------------------------+---------------+ | 0x10 | 8 | :ref:`uiVariant`\* | sequenceonce | +------------+----------------------+-------------------------------+---------------+ | 0x18 | 8 | :ref:`uiVariant`\* | frame | +------------+----------------------+-------------------------------+---------------+ | 0x20 | 8 | :ref:`uiVariant`\* | greyscale | +------------+----------------------+-------------------------------+---------------+ | 0x28 | 8 | :ref:`uiVariant`\* | usealpha | +------------+----------------------+-------------------------------+---------------+ | 0x30 | 4 | int | scaletoclip | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ ---- .. _uiItem\:\:: uiItem\:\:bmp ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+---------------+ | **Offset** | **Size (Total: 32)** | **Type** | **Field** | +------------+----------------------+-------------------------------+---------------+ | 0x0 | 4 | int | resname | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ | 0x8 | 8 | :ref:`uiVariant`\* | resref | +------------+----------------------+-------------------------------+---------------+ | 0x10 | 16 | :ref:`SDL_Rect` | area | +------------+----------------------+-------------------------------+---------------+ ---- .. _uiItem\:\:: uiItem\:\:button ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+----------------+ | **Offset** | **Size (Total: 80)** | **Type** | **Field** | +------------+----------------------+-------------------------------+----------------+ | 0x0 | 8 | :ref:`uiVariant`\* | portrait | +------------+----------------------+-------------------------------+----------------+ | 0x8 | 8 | :ref:`uiVariant`\* | paperdoll | +------------+----------------------+-------------------------------+----------------+ | 0x10 | 4 | int | encumbrance | +------------+----------------------+-------------------------------+----------------+ | 0x14 | 4 | int | colorDisplay | +------------+----------------------+-------------------------------+----------------+ | 0x18 | 4 | int | frameTimes | +------------+----------------------+-------------------------------+----------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+----------------+ | 0x20 | 8 | const char* | toggle | +------------+----------------------+-------------------------------+----------------+ | 0x28 | 8 | const char* | on | +------------+----------------------+-------------------------------+----------------+ | 0x30 | 8 | const char* | highlightGroup | +------------+----------------------+-------------------------------+----------------+ | 0x38 | 8 | :ref:`uiVariant`\* | clickable | +------------+----------------------+-------------------------------+----------------+ | 0x40 | 8 | :ref:`uiVariant`\* | actionBar | +------------+----------------------+-------------------------------+----------------+ | 0x48 | 8 | const char* | sound | +------------+----------------------+-------------------------------+----------------+ ---- .. _uiItem\:\:: uiItem\:\:edit ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+---------------+ | **Offset** | **Size (Total: 40)** | **Type** | **Field** | +------------+----------------------+-------------------------------+---------------+ | 0x0 | 8 | const char* | var | +------------+----------------------+-------------------------------+---------------+ | 0x8 | 4 | int | maxlines | +------------+----------------------+-------------------------------+---------------+ | 0xC | 4 | int | maxchars | +------------+----------------------+-------------------------------+---------------+ | 0x10 | 8 | :ref:`uiVariant`\* | placeholder | +------------+----------------------+-------------------------------+---------------+ | 0x18 | 4 | int | cursor | +------------+----------------------+-------------------------------+---------------+ | 0x1C | 4 | int | selectStart | +------------+----------------------+-------------------------------+---------------+ | 0x20 | 4 | int | selectEnd | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ ---- .. _uiItem\:\:: uiItem\:\:list ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+---------------+ | **Offset** | **Size (Total: 80)** | **Type** | **Field** | +------------+----------------------+-------------------------------+---------------+ | 0x0 | 4 | int | table | +------------+----------------------+-------------------------------+---------------+ | 0x4 | 4 | int | printrow | +------------+----------------------+-------------------------------+---------------+ | 0x8 | 4 | int | rowheight | +------------+----------------------+-------------------------------+---------------+ | 0xC | 4 | int | rowwidth | +------------+----------------------+-------------------------------+---------------+ | 0x10 | 8 | :ref:`uiVariant`\* | rowbackground | +------------+----------------------+-------------------------------+---------------+ | 0x18 | 4 | int | dynamicHeight | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ | 0x20 | 8 | :ref:`uiColumn`\* | columns | +------------+----------------------+-------------------------------+---------------+ | 0x28 | 4 | int | category | +------------+----------------------+-------------------------------+---------------+ | 0x2C | 4 | int | showHighlight | +------------+----------------------+-------------------------------+---------------+ | 0x30 | 4 | int | seperator | +------------+----------------------+-------------------------------+---------------+ | 0x34 | 4 | int | selected | +------------+----------------------+-------------------------------+---------------+ | 0x38 | 4 | int | height | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ | 0x40 | 8 | :ref:`uiVariant`\* | color | +------------+----------------------+-------------------------------+---------------+ | 0x48 | 4 | int | currentRow | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ ---- .. _uiItem\:\:: uiItem\:\:map ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+---------------------+----------+-----------+ | **Offset** | **Size (Total: 4)** | **Type** | **Field** | +------------+---------------------+----------+-----------+ | 0x0 | 4 | int | type | +------------+---------------------+----------+-----------+ ---- .. _uiItem\:\:: uiItem\:\:mosaic ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+-----------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+-------------------------------+-----------------+ | 0x0 | 8 | :ref:`uiVariant`\* | resref | +------------+----------------------+-------------------------------+-----------------+ | 0x8 | 4 | int | respectClipping | +------------+----------------------+-------------------------------+-----------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+-----------------+ ---- .. _uiItem\:\:: uiItem\:\:movie ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+---------------+ | **Offset** | **Size (Total: 48)** | **Type** | **Field** | +------------+----------------------+-------------------------------+---------------+ | 0x0 | 8 | void* | res | +------------+----------------------+-------------------------------+---------------+ | 0x8 | 16 | :ref:`SDL_Rect` | subtitle | +------------+----------------------+-------------------------------+---------------+ | 0x18 | 4 | int | transparent | +------------+----------------------+-------------------------------+---------------+ | 0x1C | 4 | unsigned int | background | +------------+----------------------+-------------------------------+---------------+ | 0x20 | 4 | int | loop | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ | 0x28 | 8 | :ref:`uiVariant`\* | queuedMovie | +------------+----------------------+-------------------------------+---------------+ ---- .. _uiItem\:\:: uiItem\:\:progressBar ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+-----------+ | **Offset** | **Size (Total: 24)** | **Type** | **Field** | +------------+----------------------+-------------------------------+-----------+ | 0x0 | 8 | :ref:`uiVariant`\* | percent | +------------+----------------------+-------------------------------+-----------+ | 0x8 | 8 | :ref:`uiVariant`\* | color | +------------+----------------------+-------------------------------+-----------+ | 0x10 | 8 | :ref:`uiVariant`\* | fullColor | +------------+----------------------+-------------------------------+-----------+ ---- .. _uiItem\:\:: uiItem\:\:rectangle ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+---------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+-------------------------------+---------------+ | 0x0 | 4 | int | number | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ | 0x8 | 8 | :ref:`uiVariant`\* | opacity | +------------+----------------------+-------------------------------+---------------+ ---- .. _uiItem\:\:: uiItem\:\:scrollbar ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+--------------------+ | **Offset** | **Size (Total: 56)** | **Type** | **Field** | +------------+----------------------+-------------------------------+--------------------+ | 0x0 | 8 | const char* | bam | +------------+----------------------+-------------------------------+--------------------+ | 0x8 | 8 | const char* | function | +------------+----------------------+-------------------------------+--------------------+ | 0x10 | 8 | :ref:`uiVariant`\* | hide | +------------+----------------------+-------------------------------+--------------------+ | 0x18 | 4 | int | top | +------------+----------------------+-------------------------------+--------------------+ | 0x1C | 4 | int | held | +------------+----------------------+-------------------------------+--------------------+ | 0x20 | 4 | int | dragging | +------------+----------------------+-------------------------------+--------------------+ | 0x24 | 4 | int | contentHeight | +------------+----------------------+-------------------------------+--------------------+ | 0x28 | 4 | int | respectConstraints | +------------+----------------------+-------------------------------+--------------------+ | 0x2C | 4 | int | clunkyScroll | +------------+----------------------+-------------------------------+--------------------+ | 0x30 | 4 | int | skipReset | +------------+----------------------+-------------------------------+--------------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+--------------------+ ---- .. _uiItem\:\:: uiItem\:\:slider ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+---------------+ | **Offset** | **Size (Total: 40)** | **Type** | **Field** | +------------+----------------------+-------------------------------+---------------+ | 0x0 | 8 | const char* | position | +------------+----------------------+-------------------------------+---------------+ | 0x8 | 8 | :ref:`uiVariant`\* | settings | +------------+----------------------+-------------------------------+---------------+ | 0x10 | 4 | int | palette | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ | 0x18 | 8 | const char* | background | +------------+----------------------+-------------------------------+---------------+ | 0x20 | 4 | int | right | +------------+----------------------+-------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------+---------------+ ---- .. _uiItem\:\:: uiItem\:\:slot ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+-----------+ | **Offset** | **Size (Total: 40)** | **Type** | **Field** | +------------+----------------------+-------------------------------+-----------+ | 0x0 | 8 | :ref:`uiVariant`\* | icon | +------------+----------------------+-------------------------------+-----------+ | 0x8 | 8 | :ref:`uiVariant`\* | count | +------------+----------------------+-------------------------------+-----------+ | 0x10 | 8 | :ref:`uiVariant`\* | usages | +------------+----------------------+-------------------------------+-----------+ | 0x18 | 8 | :ref:`uiVariant`\* | highlight | +------------+----------------------+-------------------------------+-----------+ | 0x20 | 8 | :ref:`uiVariant`\* | tint | +------------+----------------------+-------------------------------+-----------+ ---- .. _uiItem\:\:: uiItem\:\:text ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+---------------+ | **Offset** | **Size (Total: 64)** | **Type** | **Field** | +------------+----------------------+-------------------------------+---------------+ | 0x0 | 8 | const char* | originalText | +------------+----------------------+-------------------------------+---------------+ | 0x8 | 8 | :ref:`uiVariant`\* | text | +------------+----------------------+-------------------------------+---------------+ | 0x10 | 8 | const char* | font | +------------+----------------------+-------------------------------+---------------+ | 0x18 | 4 | int | point | +------------+----------------------+-------------------------------+---------------+ | 0x1C | 4 | int | useFontZoom | +------------+----------------------+-------------------------------+---------------+ | 0x20 | 8 | :ref:`uiVariant`\* | color | +------------+----------------------+-------------------------------+---------------+ | 0x28 | 4 | int | upper | +------------+----------------------+-------------------------------+---------------+ | 0x2C | 4 | int | lower | +------------+----------------------+-------------------------------+---------------+ | 0x30 | 8 | :ref:`uiVariant`\* | shadow | +------------+----------------------+-------------------------------+---------------+ | 0x38 | 8 | :ref:`uiVariant`\* | showhighlight | +------------+----------------------+-------------------------------+---------------+ ---- .. _uiItem\:\:: uiItem\:\:tooltip ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+--------------+ | **Offset** | **Size (Total: 32)** | **Type** | **Field** | +------------+----------------------+-------------------------------+--------------+ | 0x0 | 8 | const char* | originalText | +------------+----------------------+-------------------------------+--------------+ | 0x8 | 8 | :ref:`uiVariant`\* | text | +------------+----------------------+-------------------------------+--------------+ | 0x10 | 8 | :ref:`uiVariant`\* | force | +------------+----------------------+-------------------------------+--------------+ | 0x18 | 4 | int | position | +------------+----------------------+-------------------------------+--------------+ | 0x1C | 4 | int | forceTop | +------------+----------------------+-------------------------------+--------------+ ---- .. _uiItem\:\:: uiItem\:\:uiTemplate ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+---------------------+-------------------------+-----------+ | **Offset** | **Size (Total: 8)** | **Type** | **Field** | +------------+---------------------+-------------------------+-----------+ | 0x0 | 8 | :ref:`uiItem`\* | item | +------------+---------------------+-------------------------+-----------+ ---- .. _uiMenu: uiMenu ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+-------------------------------+-----------+ | **Offset** | **Size (Total: 112)** | **Type** | **Field** | +------------+-----------------------+-------------------------------+-----------+ | 0x0 | 24 | :ref:`Marker` | menuSrc | +------------+-----------------------+-------------------------------+-----------+ | 0x18 | 8 | const char* | name | +------------+-----------------------+-------------------------------+-----------+ | 0x20 | 4 | int | panel | +------------+-----------------------+-------------------------------+-----------+ | 0x24 | 4 | int | state | +------------+-----------------------+-------------------------------+-----------+ | 0x28 | 8 | :ref:`uiItem`\* | items | +------------+-----------------------+-------------------------------+-----------+ | 0x30 | 8 | :ref:`uiVariant`\* | modal | +------------+-----------------------+-------------------------------+-----------+ | 0x38 | 8 | :ref:`uiVariant`\* | opacity | +------------+-----------------------+-------------------------------+-----------+ | 0x40 | 8 | :ref:`uiVariant`\* | greyscale | +------------+-----------------------+-------------------------------+-----------+ | 0x48 | 4 | int | onOpen | +------------+-----------------------+-------------------------------+-----------+ | 0x4C | 4 | int | onClose | +------------+-----------------------+-------------------------------+-----------+ | 0x50 | 8 | SDL_Point | offset | +------------+-----------------------+-------------------------------+-----------+ | 0x58 | 4 | int | ha | +------------+-----------------------+-------------------------------+-----------+ | 0x5C | 4 | int | va | +------------+-----------------------+-------------------------------+-----------+ | 0x60 | 4 | int | width | +------------+-----------------------+-------------------------------+-----------+ | 0x64 | 4 | int | height | +------------+-----------------------+-------------------------------+-----------+ | 0x68 | 4 | int | enabled | +------------+-----------------------+-------------------------------+-----------+ | 0x6C | 4 | int | ignoreEsc | +------------+-----------------------+-------------------------------+-----------+ ---- .. _uiVariant: uiVariant ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------------------+---------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+--------------------------------------+---------------+ | 0x0 | 4 | uiVariantType | type | +------------+----------------------+--------------------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+--------------------------------------+---------------+ | 0x8 | 8 | :ref:`uiVariant`::value_t | value | +------------+----------------------+--------------------------------------+---------------+ **Notes** :: enum uiVariantType { UIVAR_INT = 0 UIVAR_FUNCTION = 1 UIVAR_STRING = 2 UIVAR_FLOAT = 3 } ---- .. _UI_ControlTableEntry_st: UI_ControlTableEntry_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+---------------------+--------------+----------------+ | **Offset** | **Size (Total: 8)** | **Type** | **Field** | +------------+---------------------+--------------+----------------+ | 0x0 | 4 | unsigned int | nControlOffset | +------------+---------------------+--------------+----------------+ | 0x4 | 4 | unsigned int | nControlSize | +------------+---------------------+--------------+----------------+ ---- .. _UI_Control_Button_st: UI_Control_Button_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+----------------+ | **Offset** | **Size (Total: 32)** | **Type** | **Field** | +------------+----------------------+--------------------------+----------------+ | 0x0 | 4 | unsigned int | nID | +------------+----------------------+--------------------------+----------------+ | 0x4 | 2 | unsigned __int16 | x | +------------+----------------------+--------------------------+----------------+ | 0x6 | 2 | unsigned __int16 | y | +------------+----------------------+--------------------------+----------------+ | 0x8 | 2 | unsigned __int16 | nWidth | +------------+----------------------+--------------------------+----------------+ | 0xA | 2 | unsigned __int16 | nHeight | +------------+----------------------+--------------------------+----------------+ | 0xC | 2 | unsigned __int16 | nType | +------------+----------------------+--------------------------+----------------+ | 0xE | 8 | Array | refBam | +------------+----------------------+--------------------------+----------------+ | 0x16 | 1 | unsigned __int8 | nSequence | +------------+----------------------+--------------------------+----------------+ | 0x17 | 1 | unsigned __int8 | bFlags | +------------+----------------------+--------------------------+----------------+ | 0x18 | 1 | unsigned __int8 | nFrameUp | +------------+----------------------+--------------------------+----------------+ | 0x19 | 1 | unsigned __int8 | refPtXLower | +------------+----------------------+--------------------------+----------------+ | 0x1A | 1 | unsigned __int8 | nFrameDown | +------------+----------------------+--------------------------+----------------+ | 0x1B | 1 | unsigned __int8 | refPtXHigher | +------------+----------------------+--------------------------+----------------+ | 0x1C | 1 | unsigned __int8 | nFrameFocus | +------------+----------------------+--------------------------+----------------+ | 0x1D | 1 | unsigned __int8 | refPtYLower | +------------+----------------------+--------------------------+----------------+ | 0x1E | 1 | unsigned __int8 | nFrameDisabled | +------------+----------------------+--------------------------+----------------+ | 0x1F | 1 | unsigned __int8 | refPtYHigher | +------------+----------------------+--------------------------+----------------+ ---- .. _UI_Control_Edit_st: UI_Control_Edit_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+---------------------------+----------------------+ | **Offset** | **Size (Total: 106)** | **Type** | **Field** | +------------+-----------------------+---------------------------+----------------------+ | 0x0 | 4 | unsigned int | nID | +------------+-----------------------+---------------------------+----------------------+ | 0x4 | 2 | unsigned __int16 | x | +------------+-----------------------+---------------------------+----------------------+ | 0x6 | 2 | unsigned __int16 | y | +------------+-----------------------+---------------------------+----------------------+ | 0x8 | 2 | unsigned __int16 | nWidth | +------------+-----------------------+---------------------------+----------------------+ | 0xA | 2 | unsigned __int16 | nHeight | +------------+-----------------------+---------------------------+----------------------+ | 0xC | 2 | unsigned __int16 | nType | +------------+-----------------------+---------------------------+----------------------+ | 0xE | 8 | Array | refEdit | +------------+-----------------------+---------------------------+----------------------+ | 0x16 | 8 | Array | refEditClientFocus | +------------+-----------------------+---------------------------+----------------------+ | 0x1E | 8 | Array | refEditClientNoFocus | +------------+-----------------------+---------------------------+----------------------+ | 0x26 | 8 | Array | refEditCaret | +------------+-----------------------+---------------------------+----------------------+ | 0x2E | 2 | unsigned __int16 | nSequenceEditCaret | +------------+-----------------------+---------------------------+----------------------+ | 0x30 | 2 | unsigned __int16 | nFrameEditCaret | +------------+-----------------------+---------------------------+----------------------+ | 0x32 | 2 | unsigned __int16 | xEditClientOffset | +------------+-----------------------+---------------------------+----------------------+ | 0x34 | 2 | unsigned __int16 | yEditClientOffset | +------------+-----------------------+---------------------------+----------------------+ | 0x36 | 2 | unsigned __int16 | xEditCaretOffset | +------------+-----------------------+---------------------------+----------------------+ | 0x38 | 2 | unsigned __int16 | yEditCaretOffset | +------------+-----------------------+---------------------------+----------------------+ | 0x3A | 8 | Array | refTextFont | +------------+-----------------------+---------------------------+----------------------+ | 0x42 | 2 | unsigned __int16 | nSequenceText | +------------+-----------------------+---------------------------+----------------------+ | 0x44 | 32 | Array | defaultString | +------------+-----------------------+---------------------------+----------------------+ | 0x64 | 2 | unsigned __int16 | maxChars | +------------+-----------------------+---------------------------+----------------------+ | 0x66 | 2 | unsigned __int16 | caseFormat | +------------+-----------------------+---------------------------+----------------------+ | 0x68 | 2 | unsigned __int16 | typeFormat | +------------+-----------------------+---------------------------+----------------------+ ---- .. _UI_Control_Label_st: UI_Control_Label_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+-------------------+ | **Offset** | **Size (Total: 36)** | **Type** | **Field** | +------------+----------------------+--------------------------+-------------------+ | 0x0 | 4 | unsigned int | nID | +------------+----------------------+--------------------------+-------------------+ | 0x4 | 2 | unsigned __int16 | x | +------------+----------------------+--------------------------+-------------------+ | 0x6 | 2 | unsigned __int16 | y | +------------+----------------------+--------------------------+-------------------+ | 0x8 | 2 | unsigned __int16 | nWidth | +------------+----------------------+--------------------------+-------------------+ | 0xA | 2 | unsigned __int16 | nHeight | +------------+----------------------+--------------------------+-------------------+ | 0xC | 2 | unsigned __int16 | nType | +------------+----------------------+--------------------------+-------------------+ | 0xE | 4 | unsigned int | textStrRef | +------------+----------------------+--------------------------+-------------------+ | 0x12 | 8 | Array | refTextFont | +------------+----------------------+--------------------------+-------------------+ | 0x1A | 4 | unsigned int | rgbTextForeground | +------------+----------------------+--------------------------+-------------------+ | 0x1E | 4 | unsigned int | rgbBackground | +------------+----------------------+--------------------------+-------------------+ | 0x22 | 2 | unsigned __int16 | nLabelType | +------------+----------------------+--------------------------+-------------------+ ---- .. _UI_Control_ScrollBar_st: UI_Control_ScrollBar_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+------------------+ | **Offset** | **Size (Total: 40)** | **Type** | **Field** | +------------+----------------------+--------------------------+------------------+ | 0x0 | 4 | unsigned int | nID | +------------+----------------------+--------------------------+------------------+ | 0x4 | 2 | unsigned __int16 | x | +------------+----------------------+--------------------------+------------------+ | 0x6 | 2 | unsigned __int16 | y | +------------+----------------------+--------------------------+------------------+ | 0x8 | 2 | unsigned __int16 | nWidth | +------------+----------------------+--------------------------+------------------+ | 0xA | 2 | unsigned __int16 | nHeight | +------------+----------------------+--------------------------+------------------+ | 0xC | 2 | unsigned __int16 | nType | +------------+----------------------+--------------------------+------------------+ | 0xE | 8 | Array | refBam | +------------+----------------------+--------------------------+------------------+ | 0x16 | 2 | unsigned __int16 | nSequence | +------------+----------------------+--------------------------+------------------+ | 0x18 | 2 | unsigned __int16 | nTopFrameUp | +------------+----------------------+--------------------------+------------------+ | 0x1A | 2 | unsigned __int16 | nTopFrameDown | +------------+----------------------+--------------------------+------------------+ | 0x1C | 2 | unsigned __int16 | nBottomFrameUp | +------------+----------------------+--------------------------+------------------+ | 0x1E | 2 | unsigned __int16 | nBottomFrameDown | +------------+----------------------+--------------------------+------------------+ | 0x20 | 2 | unsigned __int16 | nBarFrame | +------------+----------------------+--------------------------+------------------+ | 0x22 | 2 | unsigned __int16 | nThumbFrame | +------------+----------------------+--------------------------+------------------+ | 0x24 | 4 | unsigned int | nControlWindowId | +------------+----------------------+--------------------------+------------------+ ---- .. _UI_Control_Slider_st: UI_Control_Slider_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+---------------------+ | **Offset** | **Size (Total: 52)** | **Type** | **Field** | +------------+----------------------+--------------------------+---------------------+ | 0x0 | 4 | unsigned int | nID | +------------+----------------------+--------------------------+---------------------+ | 0x4 | 2 | unsigned __int16 | x | +------------+----------------------+--------------------------+---------------------+ | 0x6 | 2 | unsigned __int16 | y | +------------+----------------------+--------------------------+---------------------+ | 0x8 | 2 | unsigned __int16 | nWidth | +------------+----------------------+--------------------------+---------------------+ | 0xA | 2 | unsigned __int16 | nHeight | +------------+----------------------+--------------------------+---------------------+ | 0xC | 2 | unsigned __int16 | nType | +------------+----------------------+--------------------------+---------------------+ | 0xE | 8 | Array | refSlider | +------------+----------------------+--------------------------+---------------------+ | 0x16 | 8 | Array | refSliderThumb | +------------+----------------------+--------------------------+---------------------+ | 0x1E | 2 | unsigned __int16 | nSequenceThumb | +------------+----------------------+--------------------------+---------------------+ | 0x20 | 2 | unsigned __int16 | nFrameThumbNormal | +------------+----------------------+--------------------------+---------------------+ | 0x22 | 2 | unsigned __int16 | nFrameThumbSelected | +------------+----------------------+--------------------------+---------------------+ | 0x24 | 2 | unsigned __int16 | xThumbOffset | +------------+----------------------+--------------------------+---------------------+ | 0x26 | 2 | unsigned __int16 | yThumbOffset | +------------+----------------------+--------------------------+---------------------+ | 0x28 | 2 | unsigned __int16 | tickSize | +------------+----------------------+--------------------------+---------------------+ | 0x2A | 2 | unsigned __int16 | nTicks | +------------+----------------------+--------------------------+---------------------+ | 0x2C | 2 | unsigned __int16 | activeBarTop | +------------+----------------------+--------------------------+---------------------+ | 0x2E | 2 | unsigned __int16 | activeBarBottom | +------------+----------------------+--------------------------+---------------------+ | 0x30 | 2 | unsigned __int16 | activeBarLeft | +------------+----------------------+--------------------------+---------------------+ | 0x32 | 2 | unsigned __int16 | activeBarRight | +------------+----------------------+--------------------------+---------------------+ ---- .. _UI_Control_TextDisplay_st: UI_Control_TextDisplay_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+-------------------+ | **Offset** | **Size (Total: 46)** | **Type** | **Field** | +------------+----------------------+--------------------------+-------------------+ | 0x0 | 4 | unsigned int | nID | +------------+----------------------+--------------------------+-------------------+ | 0x4 | 2 | unsigned __int16 | x | +------------+----------------------+--------------------------+-------------------+ | 0x6 | 2 | unsigned __int16 | y | +------------+----------------------+--------------------------+-------------------+ | 0x8 | 2 | unsigned __int16 | nWidth | +------------+----------------------+--------------------------+-------------------+ | 0xA | 2 | unsigned __int16 | nHeight | +------------+----------------------+--------------------------+-------------------+ | 0xC | 2 | unsigned __int16 | nType | +------------+----------------------+--------------------------+-------------------+ | 0xE | 8 | Array | refTextFont | +------------+----------------------+--------------------------+-------------------+ | 0x16 | 8 | Array | refNameFont | +------------+----------------------+--------------------------+-------------------+ | 0x1E | 4 | unsigned int | rgbTextForeground | +------------+----------------------+--------------------------+-------------------+ | 0x22 | 4 | unsigned int | rgbDefaultName | +------------+----------------------+--------------------------+-------------------+ | 0x26 | 4 | unsigned int | rgbBackground | +------------+----------------------+--------------------------+-------------------+ | 0x2A | 4 | unsigned int | nScrollBarId | +------------+----------------------+--------------------------+-------------------+ ---- .. _UI_Control_st: UI_Control_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+------------------+-----------+ | **Offset** | **Size (Total: 14)** | **Type** | **Field** | +------------+----------------------+------------------+-----------+ | 0x0 | 4 | unsigned int | nID | +------------+----------------------+------------------+-----------+ | 0x4 | 2 | unsigned __int16 | x | +------------+----------------------+------------------+-----------+ | 0x6 | 2 | unsigned __int16 | y | +------------+----------------------+------------------+-----------+ | 0x8 | 2 | unsigned __int16 | nWidth | +------------+----------------------+------------------+-----------+ | 0xA | 2 | unsigned __int16 | nHeight | +------------+----------------------+------------------+-----------+ | 0xC | 2 | unsigned __int16 | nType | +------------+----------------------+------------------+-----------+ ---- .. _UI_Header_st: UI_Header_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------+-----------------------+ | **Offset** | **Size (Total: 20)** | **Type** | **Field** | +------------+----------------------+--------------+-----------------------+ | 0x0 | 4 | unsigned int | nFileType | +------------+----------------------+--------------+-----------------------+ | 0x4 | 4 | unsigned int | nFileVersion | +------------+----------------------+--------------+-----------------------+ | 0x8 | 4 | unsigned int | nPanels | +------------+----------------------+--------------+-----------------------+ | 0xC | 4 | unsigned int | nOffsetToControlTable | +------------+----------------------+--------------+-----------------------+ | 0x10 | 4 | unsigned int | nOffsetToPanelTable | +------------+----------------------+--------------+-----------------------+ ---- .. _UI_PanelHeader_st: UI_PanelHeader_st ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+---------------+ | **Offset** | **Size (Total: 28)** | **Type** | **Field** | +------------+----------------------+--------------------------+---------------+ | 0x0 | 4 | unsigned int | nPanelID | +------------+----------------------+--------------------------+---------------+ | 0x4 | 2 | unsigned __int16 | x | +------------+----------------------+--------------------------+---------------+ | 0x6 | 2 | unsigned __int16 | y | +------------+----------------------+--------------------------+---------------+ | 0x8 | 2 | unsigned __int16 | nWidth | +------------+----------------------+--------------------------+---------------+ | 0xA | 2 | unsigned __int16 | nHeight | +------------+----------------------+--------------------------+---------------+ | 0xC | 2 | unsigned __int16 | nType | +------------+----------------------+--------------------------+---------------+ | 0xE | 2 | unsigned __int16 | nControls | +------------+----------------------+--------------------------+---------------+ | 0x10 | 8 | Array | refMosaic | +------------+----------------------+--------------------------+---------------+ | 0x18 | 2 | unsigned __int16 | nFirstControl | +------------+----------------------+--------------------------+---------------+ | 0x1A | 2 | unsigned __int16 | wFlags | +------------+----------------------+--------------------------+---------------+